Integrand size = 43, antiderivative size = 263 \[ \int \cos ^5(c+d x) (a+a \sec (c+d x))^{3/2} \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right ) \, dx=\frac {a^{3/2} (133 A+150 B+176 C) \arctan \left (\frac {\sqrt {a} \tan (c+d x)}{\sqrt {a+a \sec (c+d x)}}\right )}{128 d}+\frac {a^2 (133 A+150 B+176 C) \sin (c+d x)}{128 d \sqrt {a+a \sec (c+d x)}}+\frac {a^2 (133 A+150 B+176 C) \cos (c+d x) \sin (c+d x)}{192 d \sqrt {a+a \sec (c+d x)}}+\frac {a^2 (67 A+90 B+80 C) \cos ^2(c+d x) \sin (c+d x)}{240 d \sqrt {a+a \sec (c+d x)}}+\frac {a (3 A+10 B) \cos ^3(c+d x) \sqrt {a+a \sec (c+d x)} \sin (c+d x)}{40 d}+\frac {A \cos ^4(c+d x) (a+a \sec (c+d x))^{3/2} \sin (c+d x)}{5 d} \]
[Out]
Time = 0.79 (sec) , antiderivative size = 263, normalized size of antiderivative = 1.00, number of steps used = 7, number of rules used = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.140, Rules used = {4171, 4102, 4100, 3890, 3859, 209} \[ \int \cos ^5(c+d x) (a+a \sec (c+d x))^{3/2} \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right ) \, dx=\frac {a^{3/2} (133 A+150 B+176 C) \arctan \left (\frac {\sqrt {a} \tan (c+d x)}{\sqrt {a \sec (c+d x)+a}}\right )}{128 d}+\frac {a^2 (133 A+150 B+176 C) \sin (c+d x)}{128 d \sqrt {a \sec (c+d x)+a}}+\frac {a^2 (67 A+90 B+80 C) \sin (c+d x) \cos ^2(c+d x)}{240 d \sqrt {a \sec (c+d x)+a}}+\frac {a^2 (133 A+150 B+176 C) \sin (c+d x) \cos (c+d x)}{192 d \sqrt {a \sec (c+d x)+a}}+\frac {a (3 A+10 B) \sin (c+d x) \cos ^3(c+d x) \sqrt {a \sec (c+d x)+a}}{40 d}+\frac {A \sin (c+d x) \cos ^4(c+d x) (a \sec (c+d x)+a)^{3/2}}{5 d} \]
[In]
[Out]
Rule 209
Rule 3859
Rule 3890
Rule 4100
Rule 4102
Rule 4171
Rubi steps \begin{align*} \text {integral}& = \frac {A \cos ^4(c+d x) (a+a \sec (c+d x))^{3/2} \sin (c+d x)}{5 d}+\frac {\int \cos ^4(c+d x) (a+a \sec (c+d x))^{3/2} \left (\frac {1}{2} a (3 A+10 B)+\frac {5}{2} a (A+2 C) \sec (c+d x)\right ) \, dx}{5 a} \\ & = \frac {a (3 A+10 B) \cos ^3(c+d x) \sqrt {a+a \sec (c+d x)} \sin (c+d x)}{40 d}+\frac {A \cos ^4(c+d x) (a+a \sec (c+d x))^{3/2} \sin (c+d x)}{5 d}+\frac {\int \cos ^3(c+d x) \sqrt {a+a \sec (c+d x)} \left (\frac {1}{4} a^2 (67 A+90 B+80 C)+\frac {5}{4} a^2 (11 A+10 B+16 C) \sec (c+d x)\right ) \, dx}{20 a} \\ & = \frac {a^2 (67 A+90 B+80 C) \cos ^2(c+d x) \sin (c+d x)}{240 d \sqrt {a+a \sec (c+d x)}}+\frac {a (3 A+10 B) \cos ^3(c+d x) \sqrt {a+a \sec (c+d x)} \sin (c+d x)}{40 d}+\frac {A \cos ^4(c+d x) (a+a \sec (c+d x))^{3/2} \sin (c+d x)}{5 d}+\frac {1}{96} (a (133 A+150 B+176 C)) \int \cos ^2(c+d x) \sqrt {a+a \sec (c+d x)} \, dx \\ & = \frac {a^2 (133 A+150 B+176 C) \cos (c+d x) \sin (c+d x)}{192 d \sqrt {a+a \sec (c+d x)}}+\frac {a^2 (67 A+90 B+80 C) \cos ^2(c+d x) \sin (c+d x)}{240 d \sqrt {a+a \sec (c+d x)}}+\frac {a (3 A+10 B) \cos ^3(c+d x) \sqrt {a+a \sec (c+d x)} \sin (c+d x)}{40 d}+\frac {A \cos ^4(c+d x) (a+a \sec (c+d x))^{3/2} \sin (c+d x)}{5 d}+\frac {1}{128} (a (133 A+150 B+176 C)) \int \cos (c+d x) \sqrt {a+a \sec (c+d x)} \, dx \\ & = \frac {a^2 (133 A+150 B+176 C) \sin (c+d x)}{128 d \sqrt {a+a \sec (c+d x)}}+\frac {a^2 (133 A+150 B+176 C) \cos (c+d x) \sin (c+d x)}{192 d \sqrt {a+a \sec (c+d x)}}+\frac {a^2 (67 A+90 B+80 C) \cos ^2(c+d x) \sin (c+d x)}{240 d \sqrt {a+a \sec (c+d x)}}+\frac {a (3 A+10 B) \cos ^3(c+d x) \sqrt {a+a \sec (c+d x)} \sin (c+d x)}{40 d}+\frac {A \cos ^4(c+d x) (a+a \sec (c+d x))^{3/2} \sin (c+d x)}{5 d}+\frac {1}{256} (a (133 A+150 B+176 C)) \int \sqrt {a+a \sec (c+d x)} \, dx \\ & = \frac {a^2 (133 A+150 B+176 C) \sin (c+d x)}{128 d \sqrt {a+a \sec (c+d x)}}+\frac {a^2 (133 A+150 B+176 C) \cos (c+d x) \sin (c+d x)}{192 d \sqrt {a+a \sec (c+d x)}}+\frac {a^2 (67 A+90 B+80 C) \cos ^2(c+d x) \sin (c+d x)}{240 d \sqrt {a+a \sec (c+d x)}}+\frac {a (3 A+10 B) \cos ^3(c+d x) \sqrt {a+a \sec (c+d x)} \sin (c+d x)}{40 d}+\frac {A \cos ^4(c+d x) (a+a \sec (c+d x))^{3/2} \sin (c+d x)}{5 d}-\frac {\left (a^2 (133 A+150 B+176 C)\right ) \text {Subst}\left (\int \frac {1}{a+x^2} \, dx,x,-\frac {a \tan (c+d x)}{\sqrt {a+a \sec (c+d x)}}\right )}{128 d} \\ & = \frac {a^{3/2} (133 A+150 B+176 C) \arctan \left (\frac {\sqrt {a} \tan (c+d x)}{\sqrt {a+a \sec (c+d x)}}\right )}{128 d}+\frac {a^2 (133 A+150 B+176 C) \sin (c+d x)}{128 d \sqrt {a+a \sec (c+d x)}}+\frac {a^2 (133 A+150 B+176 C) \cos (c+d x) \sin (c+d x)}{192 d \sqrt {a+a \sec (c+d x)}}+\frac {a^2 (67 A+90 B+80 C) \cos ^2(c+d x) \sin (c+d x)}{240 d \sqrt {a+a \sec (c+d x)}}+\frac {a (3 A+10 B) \cos ^3(c+d x) \sqrt {a+a \sec (c+d x)} \sin (c+d x)}{40 d}+\frac {A \cos ^4(c+d x) (a+a \sec (c+d x))^{3/2} \sin (c+d x)}{5 d} \\ \end{align*}
Time = 2.14 (sec) , antiderivative size = 182, normalized size of antiderivative = 0.69 \[ \int \cos ^5(c+d x) (a+a \sec (c+d x))^{3/2} \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right ) \, dx=\frac {a \left (15 (133 A+150 B+176 C) \text {arctanh}\left (\sqrt {1-\sec (c+d x)}\right )+\cos (c+d x) (2671 A+2850 B+2960 C+2 (1007 A+930 B+880 C) \cos (c+d x)+4 (181 A+150 B+80 C) \cos (2 (c+d x))+228 A \cos (3 (c+d x))+120 B \cos (3 (c+d x))+48 A \cos (4 (c+d x))) \sqrt {1-\sec (c+d x)}\right ) \sqrt {a (1+\sec (c+d x))} \sin (c+d x)}{1920 d (1+\cos (c+d x)) \sqrt {1-\sec (c+d x)}} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. \(611\) vs. \(2(235)=470\).
Time = 2.29 (sec) , antiderivative size = 612, normalized size of antiderivative = 2.33
method | result | size |
default | \(\frac {a \left (384 A \cos \left (d x +c \right )^{5} \sin \left (d x +c \right )+912 A \cos \left (d x +c \right )^{4} \sin \left (d x +c \right )+480 B \cos \left (d x +c \right )^{4} \sin \left (d x +c \right )+1064 A \cos \left (d x +c \right )^{3} \sin \left (d x +c \right )+1200 B \sin \left (d x +c \right ) \cos \left (d x +c \right )^{3}+640 C \cos \left (d x +c \right )^{3} \sin \left (d x +c \right )+1995 A \sqrt {-\frac {\cos \left (d x +c \right )}{\cos \left (d x +c \right )+1}}\, \operatorname {arctanh}\left (\frac {\sin \left (d x +c \right )}{\left (\cos \left (d x +c \right )+1\right ) \sqrt {-\frac {\cos \left (d x +c \right )}{\cos \left (d x +c \right )+1}}}\right ) \cos \left (d x +c \right )+1330 A \cos \left (d x +c \right )^{2} \sin \left (d x +c \right )+2250 B \,\operatorname {arctanh}\left (\frac {\sin \left (d x +c \right )}{\left (\cos \left (d x +c \right )+1\right ) \sqrt {-\frac {\cos \left (d x +c \right )}{\cos \left (d x +c \right )+1}}}\right ) \sqrt {-\frac {\cos \left (d x +c \right )}{\cos \left (d x +c \right )+1}}\, \cos \left (d x +c \right )+1500 B \sin \left (d x +c \right ) \cos \left (d x +c \right )^{2}+2640 C \sqrt {-\frac {\cos \left (d x +c \right )}{\cos \left (d x +c \right )+1}}\, \operatorname {arctanh}\left (\frac {\sin \left (d x +c \right )}{\left (\cos \left (d x +c \right )+1\right ) \sqrt {-\frac {\cos \left (d x +c \right )}{\cos \left (d x +c \right )+1}}}\right ) \cos \left (d x +c \right )+1760 C \cos \left (d x +c \right )^{2} \sin \left (d x +c \right )+1995 A \sqrt {-\frac {\cos \left (d x +c \right )}{\cos \left (d x +c \right )+1}}\, \operatorname {arctanh}\left (\frac {\sin \left (d x +c \right )}{\left (\cos \left (d x +c \right )+1\right ) \sqrt {-\frac {\cos \left (d x +c \right )}{\cos \left (d x +c \right )+1}}}\right )+1995 A \cos \left (d x +c \right ) \sin \left (d x +c \right )+2250 B \sqrt {-\frac {\cos \left (d x +c \right )}{\cos \left (d x +c \right )+1}}\, \operatorname {arctanh}\left (\frac {\sin \left (d x +c \right )}{\left (\cos \left (d x +c \right )+1\right ) \sqrt {-\frac {\cos \left (d x +c \right )}{\cos \left (d x +c \right )+1}}}\right )+2250 B \cos \left (d x +c \right ) \sin \left (d x +c \right )+2640 C \sqrt {-\frac {\cos \left (d x +c \right )}{\cos \left (d x +c \right )+1}}\, \operatorname {arctanh}\left (\frac {\sin \left (d x +c \right )}{\left (\cos \left (d x +c \right )+1\right ) \sqrt {-\frac {\cos \left (d x +c \right )}{\cos \left (d x +c \right )+1}}}\right )+2640 C \cos \left (d x +c \right ) \sin \left (d x +c \right )\right ) \sqrt {a \left (1+\sec \left (d x +c \right )\right )}}{1920 d \left (\cos \left (d x +c \right )+1\right )}\) | \(612\) |
[In]
[Out]
none
Time = 0.45 (sec) , antiderivative size = 462, normalized size of antiderivative = 1.76 \[ \int \cos ^5(c+d x) (a+a \sec (c+d x))^{3/2} \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right ) \, dx=\left [\frac {15 \, {\left ({\left (133 \, A + 150 \, B + 176 \, C\right )} a \cos \left (d x + c\right ) + {\left (133 \, A + 150 \, B + 176 \, C\right )} a\right )} \sqrt {-a} \log \left (\frac {2 \, a \cos \left (d x + c\right )^{2} - 2 \, \sqrt {-a} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \cos \left (d x + c\right ) \sin \left (d x + c\right ) + a \cos \left (d x + c\right ) - a}{\cos \left (d x + c\right ) + 1}\right ) + 2 \, {\left (384 \, A a \cos \left (d x + c\right )^{5} + 48 \, {\left (19 \, A + 10 \, B\right )} a \cos \left (d x + c\right )^{4} + 8 \, {\left (133 \, A + 150 \, B + 80 \, C\right )} a \cos \left (d x + c\right )^{3} + 10 \, {\left (133 \, A + 150 \, B + 176 \, C\right )} a \cos \left (d x + c\right )^{2} + 15 \, {\left (133 \, A + 150 \, B + 176 \, C\right )} a \cos \left (d x + c\right )\right )} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sin \left (d x + c\right )}{3840 \, {\left (d \cos \left (d x + c\right ) + d\right )}}, -\frac {15 \, {\left ({\left (133 \, A + 150 \, B + 176 \, C\right )} a \cos \left (d x + c\right ) + {\left (133 \, A + 150 \, B + 176 \, C\right )} a\right )} \sqrt {a} \arctan \left (\frac {\sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \cos \left (d x + c\right )}{\sqrt {a} \sin \left (d x + c\right )}\right ) - {\left (384 \, A a \cos \left (d x + c\right )^{5} + 48 \, {\left (19 \, A + 10 \, B\right )} a \cos \left (d x + c\right )^{4} + 8 \, {\left (133 \, A + 150 \, B + 80 \, C\right )} a \cos \left (d x + c\right )^{3} + 10 \, {\left (133 \, A + 150 \, B + 176 \, C\right )} a \cos \left (d x + c\right )^{2} + 15 \, {\left (133 \, A + 150 \, B + 176 \, C\right )} a \cos \left (d x + c\right )\right )} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sin \left (d x + c\right )}{1920 \, {\left (d \cos \left (d x + c\right ) + d\right )}}\right ] \]
[In]
[Out]
Timed out. \[ \int \cos ^5(c+d x) (a+a \sec (c+d x))^{3/2} \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right ) \, dx=\text {Timed out} \]
[In]
[Out]
Timed out. \[ \int \cos ^5(c+d x) (a+a \sec (c+d x))^{3/2} \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right ) \, dx=\text {Timed out} \]
[In]
[Out]
\[ \int \cos ^5(c+d x) (a+a \sec (c+d x))^{3/2} \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right ) \, dx=\int { {\left (C \sec \left (d x + c\right )^{2} + B \sec \left (d x + c\right ) + A\right )} {\left (a \sec \left (d x + c\right ) + a\right )}^{\frac {3}{2}} \cos \left (d x + c\right )^{5} \,d x } \]
[In]
[Out]
Timed out. \[ \int \cos ^5(c+d x) (a+a \sec (c+d x))^{3/2} \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right ) \, dx=\int {\cos \left (c+d\,x\right )}^5\,{\left (a+\frac {a}{\cos \left (c+d\,x\right )}\right )}^{3/2}\,\left (A+\frac {B}{\cos \left (c+d\,x\right )}+\frac {C}{{\cos \left (c+d\,x\right )}^2}\right ) \,d x \]
[In]
[Out]